package pers.vic.dubbo.consumer.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pers.vic.dubbo.consumer.service.ConsumerTestService;

import javax.annotation.Resource;
import javax.annotation.Resources;

/**
 * 描述: test api
 * @author Vic.xu
 * @date 2022-01-04 13:28
 */
@RestController
@RequestMapping("/consumer")
public class ConsumerController {

    @Resource
    private ConsumerTestService consumerTestService;


    @RequestMapping("/api")
    public Object api(int id){
        return consumerTestService.findById(id);
    }
}
